function res = finalF(t,X)
    %res = zeros(1, length(X));
    r=0;
    if(t>=1)
        r=1;
    end
    res(2)=r-10*X(2)-29*X(1);
    res(1)= X(2);
end

